package com.scwatch.ext.repository;

import com.scwatch.ext.domain.CityConfig;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface CityConfigDao extends Repository<CityConfig, Integer>{

    List<CityConfig> findAll(Specification<CityConfig> spec, Sort sort);

    Page<CityConfig> findAll(Specification<CityConfig> spec, Pageable pageable);

    CityConfig save(CityConfig bean);

    CityConfig findOne(Integer id);

    CityConfig delete(CityConfig bean);

}
